<?
class DetailTouristAttractionForm extends Form
{
	private $news =array();
	
	function DetailTouristAttractionForm()
	{
		Form::Form('DetailTouristAttractionForm');
                if(Url::get('cmd')=='view'){			
			$id = (int)Url::get('id');
			if($id){
				$this->news=DB::select('tourist_attractions','id='.$id);
                              
			}
			
			if(!$this->news)
			Url::redirect_current();
		}

	}
	
	function on_submit(){
        
	}	
	
	function draw()
	{	
                
		global $display;
                $display->add('news',$this->news);
                $display->add('back',Url::getParam('url'));
                $display->output('DetailTouristAttraction');
		
	}
}
?>